package com.weiweiqin.dao.impl;

import java.util.List;

import com.weiweiqin.dao.CategoryDao;
import com.weiweiqin.model.Category;

public class CategoryDaoImpl extends GenericMybatisDao<Category, Integer>
		implements CategoryDao {

	public Category getByName(String name) {
		return  (Category)getSqlSession().selectOne("Category_getByName",name);
	}
	@SuppressWarnings("unchecked")
	public List<Category> getAll() {
		return (List<Category>)getSqlSession().selectList("Category_getAll");
	}
}